import requests

# 7、head方法的使用

url = 'https://python123.io/ws/demo.html'
res = requests.head(url)
print(res.status_code)
html = res.text